package com.crm.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
//    private String[] excludePathPatterns;
//
//    public void addInterceptors(InterceptorRegistry registry){
//        //拦截路径规则
//        String[] pathPatterns = {"/**"};
//        //排除路径规则
//        String[] excludePatterns = {"/login","/regist","/statics/**"};
//        //注册拦截    添加路径规则        添加排除路径规
//        registry.addInterceptor(new AuthorizationInterceptor()).addPathPatterns(pathPatterns).excludePathPatterns(excludePatterns);
//    }
}
